package com.hanlyjiang.library.widget.paint;

import android.graphics.Canvas;
import android.graphics.Paint;

public abstract class DShape {

	private int color;
	
	public DShape(int color) {
		super();
		this.color = color;
	}
	/**
	 * 必须调用父类的draw,以设置画笔颜色 
	 */
	public void draw(Canvas c, Paint p){
		p.setColor(getColor());
	}
	
	public int getColor() {
		return color;
	}
	public void setColor(int color) {
		this.color = color;
	}
}
